package cn.itsource.autoconfiguration;

import cn.itsource.config.WechatConfig;
import cn.itsource.template.WechatTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program fccar_tt
 * @Description
 * @Author TT
 * @Date 2024/09/04 12:43
 * @Version 1.0
 */
@Configuration
@EnableConfigurationProperties({WechatConfig.class})
public class WechatAutoConfiguration {
    @Bean
    public WechatTemplate WechatAutoConfiguration(WechatConfig wechatConfig){
        return new WechatTemplate(wechatConfig);
    }
}
